import request from '@/utils/request'

// 创建首页服务
export function createServiceInfotwo(data) {
  return request({
    url: '/system/service-infotwo/create',
    method: 'post',
    data: data
  })
}

// 更新首页服务
export function updateServiceInfotwo(data) {
  return request({
    url: '/system/service-infotwo/update',
    method: 'put',
    data: data
  })
}

// 删除首页服务
export function deleteServiceInfotwo(id) {
  return request({
    url: '/system/service-infotwo/delete?id=' + id,
    method: 'delete'
  })
}

// 获得首页服务
export function getServiceInfotwo(id) {
  return request({
    url: '/system/service-infotwo/get?id=' + id,
    method: 'get'
  })
}

// 获得首页服务分页
export function getServiceInfotwoPage(params) {
  return request({
    url: '/system/service-infotwo/page',
    method: 'get',
    params
  })
}
// 导出首页服务 Excel
export function exportServiceInfotwoExcel(params) {
  return request({
    url: '/system/service-infotwo/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}